import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;

import java.io.File;

public class Lastfm {

    @Test
    public void test() {
        File file = new File("D:\\chromedriver.exe");
        System.setProperty("webdriver.chrome.driver", file.getAbsolutePath());
        WebDriver webDriver = new ChromeDriver();
        webDriver.get("http://lastfm.com");
        WebElement webElement = webDriver.findElement(By.id("loginBtn"));
        webElement.click();

        //webDriver.quit();
    }
}
